import type { API } from '@/views/Connection/types';
import axios from 'axios';
import type { IResponse } from './types';

export const getYunFanConfig = () => axios.get<IResponse>('/apiYunFanConfig');

export const getTianDianConfig = () => axios.get<IResponse>('/apiTianDianConfig');

export const postYunFanConfig = (data: API) => axios.post<IResponse>('/dataYunFanConfig', data);

export const postTianDianConfig = (data: API) => axios.post<IResponse>('/dataYunFanConfig', data);
